package _8_IO._5_Reader;

import org.junit.jupiter.api.Test;

import java.io.*;

public class ReaderTest {

    @Test
    public void f() throws IOException {

        String path = "C://";
        String fileName = "test.txt";
        int temp;
        Reader reader = new FileReader(path + fileName);
        while(true){
            temp = reader.read();
            if(temp == -1){
                break;
            }

            System.out.println(temp);
            System.out.println((char)temp);
        }
        reader.close();
    }

}
